package variable;

import java.util.Arrays;
import java.util.Scanner;

public class Array {
    public static void main(String[] args) {
        int[] numbers = new int[40];
        for (int i=0;i<numbers.length;i++){
            numbers[i] = i+1;
        }
        Scanner in = new Scanner(System.in);
        int k = in.nextInt();
        int n = numbers.length;
        int[] result = new int[k];
        for (int i=0;i<k;i++){
            int r = (int)(Math.random()*n);
            result[i] = numbers[r];
            numbers[r] = numbers[n-1];
            n--;
        }
        Arrays.sort(result);
        for (int r:result){
            System.out.println(r);
        }
    }
}
